package bsi.vn.Lib;

public class Consts {
	public static String MAIN_URL = "http://115.78.3.210:8082/MobiFunc/Mobi.aspx";
	
	//Database
	public static String DATABASE_NAME 		= "BSI.db";
	public static String TABLE_COOKIE		= "BSI_COOKIE";
	public static String TABLE_LOCATION 	= "BSI_LOCATION";
	public static String TABLE_TICKET 		= "BSI_TICKET";
	public static String TABLE_PROVINCE 	= "BSI_PROVINCE";
	public static String TABLE_CUSTOMER 	= "BSI_CUSTOMER";
	public static String TABLE_ERRORLIST 	= "BSI_ERRORLIST";
	public static String TABLE_ERRORDETAIL 	= "BSI_ERRORDETAIL";
	public static int DATABASE_VERSION 		= 12;
	
	//Database Fields
	public static String DBF_ROWID 			= "_id";
	public static String DBF_USERID 		= "FUserId";
	public static String DBF_COOKIE 		= "FCookie";
	public static String DBF_USERTYPE 		= "FUserType";
	public static String DBF_IPADDRESS 		= "FIpAddress";
	public static String DBF_LAT 			= "FLat";
	public static String DBF_LNG 			= "FLng";
	public static String DBF_CODE 			= "Fcode";
	public static String DBF_MARKET 		= "Fmarket";
	public static String DBF_BPRICE 		= "FBPrice";
	public static String DBF_SPRICE 		= "FSPrice";
	public static String DBF_BDATE 			= "FBDate";
	public static String DBF_SDATE 			= "FSDate";
	public static String DBF_LAST 			= "Flast";
	public static String DBF_CEILING 		= "Fceiling";
	public static String DBF_FLOOR 			= "Ffloor";
	public static String DBF_CHANGE 		= "Fchange";
	public static String DBF_VOL 			= "Fvol";
	public static String DBF_VALUE 			= "Fvalue";
	public static String DBF_PROVINCE 		= "Fprovince";
	public static String DBF_CUSTOMER 		= "Fcustomer";
	public static String DBF_DESCRIPTION 	= "Fdescription";
	public static String DBF_ERRORCODE 		= "Ferrorcode";
	public static String DBF_ORDER 			= "Forder";
	public static String DBF_ERRORID 		= "Ferrorid";
	
	//Data send from server
	public static String SDB_TICKETID 		= "TID";
	public static String SDB_TICKETCODE 	= "TCD";
	public static String SDB_ATMID 			= "AID";
	public static String SDB_PROVINCEID 	= "PID";
	public static String SDB_CUSTOMERID 	= "CID";
	public static String SDB_SERIALNO 		= "SNO";
	public static String SDB_ADDRESS 		= "ADD";
	public static String SDB_TYPE 			= "TYP";
	public static String SDB_DESCRIPTION 	= "DES";
	public static String SDB_DETAIL 		= "DTL";
	public static String SDB_NAME 			= "NAM";
	public static String SDB_PHONE 			= "PHO";
	public static String SDB_REQUEST 		= "REQ";
	public static String SDB_DEPARTURE 		= "DEP";
	public static String SDB_ARRIVE 		= "ARR";
	public static String SDB_PROCESS 		= "PRO";
	public static String SDB_FINISH 		= "FNI";
	public static String SDB_RETURN 		= "RET";
	public static String SDB_ASSIGN 		= "ASS";
	public static String SDB_PROVINCE 		= "CIT";
	public static String SDB_CUSTOMER 		= "CUS";
	public static String SDB_MODELATM 		= "MOD";
	public static String SDB_AREA 			= "ARE";
	public static String SDB_HANDED 		= "HAN";
	public static String SDB_DEPLOY 		= "DEP";
	public static String SDB_KEY 			= "KEY";
	public static String SDB_ERRORID 		= "EID";
	public static String SDB_ERRORCODE 		= "ECO";
	public static String SDB_ERRORDETAILID 	= "DID";
	public static String SDB_ORDER 			= "ORD";
	public static String SDB_SCHEDULE		= "SCH";
	public static String SDB_LAT			= "LAT";
	public static String SDB_LNG			= "LNG";
	public static String SDB_CONTRACTID		= "CID";
	public static String SDB_CONTRACTNO		= "CNO";
	public static String SDB_EXPIREDATE		= "EDA";
	public static String SDB_CONTRACTNAME	= "CNA";
	public static String SDB_SIGNEDDATE		= "SDA";
	public static String SDB_CONTRACTNOTE	= "NOT";
	public static String SDB_CONTRACTCOM	= "COM";
	
	//Variable name
	public static String V_FUNC 			= "func";
	public static String V_USERNAME 		= "uname";
	public static String V_PASSWORD 		= "pass";
	public static String V_COOKIE 			= "cookie";
	public static String V_TICKETID 		= "ticketid";
	public static String V_TICKETNO 		= "ticketno";
	public static String V_USERID 			= "userid";
	public static String V_DATA 			= "data";
	public static String V_SERIAL 			= "serial";
	public static String V_ADDRESS 			= "addr";
	public static String V_PROVINCE 		= "province";
	public static String V_CUSTOMER 		= "customer";
	public static String V_RESULT 			= "lineno";
	public static String V_ATMID 			= "atmid";
	public static String V_FROM 			= "from";
    public static String V_TO 				= "to";
    public static String V_CONTRACTID  		= "ctid";
    public static String V_CONTRACTNO 		= "ctno";
    public static String V_MAILID			= "mid";
	
	//Function name
	public static String F_LOGIN 			= "1";
	public static String F_UPDATELOCATION 	= "2";
	public static String F_TICKETLIST 		= "3";
	public static String F_TICKETDETAIL 	= "4";
	public static String F_UPDATETICKET 	= "5";
	public static String F_PROVINCE 		= "7";
	public static String F_CUSTOMER 		= "8";
	public static String F_ATMLIST 			= "9";
	public static String F_ATMDETAIL 		= "10";
	public static String F_ERRORLIST 		= "11";
	public static String F_ERRORDETAIL 		= "12";
	public static String F_LOGOUT 			= "13";
	public static String F_TICKETSEARCH		= "14";
	public static String F_CONTRACTINFOMATION	= "16";
	public static String F_CONTRACTSEARCH	= "17";
	public static String F_ATMCONTRACTLIST	= "18";
	public static String F_ATMTICKETLIST 	= "19";
	public static String F_CONTRACTSERVICE 	= "22";
	public static String F_CONTRACTATMLIST 	= "23";
	public static String SF_DEPARTURE 		= "1";
	public static String SF_ARRIVE 			= "2";
	public static String SF_PROCESS 		= "3";
	public static String SF_FINISH 			= "4";
	public static String SF_RETURN 			= "5";
	
	//Response code from server
	public static int RC_OK 				= 0;
	public static int RC_ERROR 				= -1;
	public static int RC_LOGOUT 			= -2;
	
	//UserType
	public static int UT_ADMIN 				= 0;
	public static int UT_ATMCENTER 			= 1;
	public static int UT_CALLCENTER 		= 2;
	public static int UT_TEAMLEADER 		= 3;
	
	public static String F_COOKIE			= "cookie.txt";
}


